import React from 'react'
import Task from './Task/Task'
import './TaskList.module.css'

const TaskList = ({ tasks, deleteFunc }) => {
	return (
		<>
			{tasks.map(task => (
				<Task key={task.id} delete={deleteFunc} task={task} />
			))}
		</>
	)
}

export default TaskList
